package com.thankcreate.geekchat.logic;


import java.util.Random;

import com.thankcreate.model.ContactEntry;

public abstract class WelfareReact extends React {
	
	public WelfareReact(ContactEntry contactEntry, String input) {
		super(contactEntry, input);
		
	}
	
	public String getReact() {
		Random random = new Random();  
		int total = getPossibleReacts().size();
		int randomInt;

		randomInt = getDifferetRandomIndex();			
		doSeperateReact(randomInt);
		return PossibleReacts.get(randomInt);
	}
	
	/*
	 * This will be called before we return an String in getReact() method. 
	 */
	public abstract void doSeperateReact(int index);

}
